# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Archan Paul <archan.paul@gmail.com>
# Contributor: aexoxea <digitaleon@internode.on.net>

pkgname=idle3-tools
pkgver=0.9.1
pkgrel=7
pkgdesc='A utility that can disable, get and set the value of the idle3 timer found on Western Digital Hard Drives.'
arch=(loong64 x86_64)
url='http://idle3-tools.sourceforge.net/'
license=(GPL)
depends=(glibc)
source=(https://download.sourceforge.net/idle3-tools/idle3-tools-$pkgver.tgz)
sha1sums=('44b5c4988e42d59e56fbc72550db34c5012beda6')

build() {
  cd idle3-tools-$pkgver
  make
}

package() {
  cd idle3-tools-$pkgver
  make sbindir=/usr/bin DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
